/*
 * Easy Home Accounting
 * Copyright (c) Martin Kumst 2011
 * License: GNU GPL VERSION 2
 */

package easyhomeaccounting;

import java.util.*;

public class EHAProject {
    private String file;
    private List<EHAMoneyMove> content;
    
    public EHAProject() {
        file = null; /* Projekt zatim neni nikde ulozeny */
        content = new ArrayList<EHAMoneyMove>(); /* Zatim zadny pohyb na uctu */
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public void addEHAMoneyMove(EHAMoneyMove move) {
        content.add(move);
    }

    public void remEHAMoneyMove(int index) {
        content.remove(index);
    }

    public void setEHAMoneyMove(int index, EHAMoneyMove move) {
        content.set(index, move);
    }

    public List<EHAMoneyMove> getContent() {
        /* Zvenku umoznime pouze read-only pristup */
        return Collections.unmodifiableList(content);
    }
}
